package com.company.config;

import com.company.bean.Person;
import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.web.filter.CharacterEncodingFilter;
import sun.security.krb5.Config;

/**
 * @Auther Xue
 * @Date 2021/4/26
 * @Version 1.0
 * @Desc
 */
@Configuration //告诉SpringBoot这是一个配置类 == 配置文件
//@ComponentScan(value = "com.company",includeFilters = {
////        @ComponentScan.Filter(type = FilterType.ANNOTATION,classes = {Controller.class,
////                Service.class,Repository.class
////        }),
//        @ComponentScan.Filter(type = FilterType.CUSTOM,classes = {MyTypeFilter.class})
//},useDefaultFilters=false)
@Lazy
public class MyConfig {
//@Bean
//    public CharacterEncodingFilter filter111(){
//        return null;
//    }
@Bean
public Person person01(){
    return new Person("lisi",24);
}
}